//package com.cn.springcloudapi.controller.wachat.articleAndMenu;
//
//
//import com.cn.springcloudapi.inter.wachat.articleAndMenu.YmSubjectPackageApiService;
//import com.cn.springcloudwechat.common.ajax.AjaxRes;
//import com.cn.springcloudwechat.common.utils.base.Const;
//import com.cn.springcloudwechat.model.articleAndMenu.YmSubjectPackage;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * @author: Administrator
// * @create: 2018/7/20 18:29
// */
//
//@RestController
//@RequestMapping("/subjectPackage/")
//public class YmSubjectPackageApiController {
//    @Autowired
//    YmSubjectPackageApiService ymSubjectPackageApiService;
//
//    /**
//     * 添加专题包
//     * @param ymSubjectPackage
//     * @param articleIdList
//     * @return
//     */
//    @RequestMapping(value="insertYmSubjectPackageAndYmSubject")
//    public AjaxRes insertYmSubjectPackageAndYmSubject(YmSubjectPackage ymSubjectPackage, List<Long> articleIdList ){
//        return  ymSubjectPackageApiService.insertYmSubjectPackageAndYmSubject(ymSubjectPackage,articleIdList);
//    }
//
//    /**
//     *  获取专题包
//     * @return
//     */
//    @RequestMapping(value="getAllYmSubjectPackage")
//    public AjaxRes getAllYmSubjectPackage(){
//        return ymSubjectPackageApiService.getAllYmSubjectPackage();
//    }
//
//    /**
//     *  根据专题包id 获取某个专题包
//     * @param subjectPackageId
//     * @return
//     */
//    @RequestMapping(value="getYmSubjectPackageAndArticle")
//    public AjaxRes getYmSubjectPackageAndArticle(Long subjectPackageId ){
//        return ymSubjectPackageApiService.getYmSubjectPackageAndArticle(subjectPackageId);
//    }
//
//    /**
//     *  更新专题包
//     * @param ymSubjectPackage
//     * @param articleIdList
//     * @return
//     */
//    @RequestMapping(value="updateYmSubjectPackage")
//    public AjaxRes updateYmSubjectPackage(YmSubjectPackage ymSubjectPackage,List<Long> articleIdList ){
//        return ymSubjectPackageApiService.updateYmSubjectPackage(ymSubjectPackage,articleIdList);
//    }
//
//}
